import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './routes'
import home from './home'
import journey from './journey'
import mine from './mine'
import travel from './travel'

Vue.use(VueRouter)

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  // routes: routes.push(...home, ...journey, ...mine, ...travel),
  routes: routes.concat(home, journey, mine, travel),
})
export default router
